package request;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class Request {
	private String url;
	
	public static void main(String[] args) throws Exception {
		/*
		 * try { String encode = URLEncoder.encode("-_.~", "utf-8");
		 * System.out.println(encode); } catch (UnsupportedEncodingException e) {
		 * e.printStackTrace(); }
		 */
		
		String s = "a";
		byte[] bytes = s.getBytes("utf-8");
		System.out.println(bytes[0]);
		
		int b = (bytes[0] >> 4) & 0xf;
		System.out.println(b);
		
		b = bytes[0] & 0xf;
		System.out.println(b);
	}
}
